package com.it.zuoning.sbh.sbhservice.util;

/**
 * 字符串处理工具类
 * 
 * 
 * @author zuoning
 *
 */
public class StringUtils {
	
	//都是空的
	public static boolean isAllEmpty(String ...args) {
		for (String string : args) {
			if (!org.springframework.util.StringUtils.isEmpty(string)) {
				return false;
			}
		}
		return true;
	}
	
	//没有空值
	public static boolean allNotEmpty(String ...args) {
		return !hasEmpty(args);
	}
	
	//有空值
	public static boolean hasEmpty(String ...args) {
		for (String string : args) {
			if (org.springframework.util.StringUtils.isEmpty(string)) {
				return true;
			}
		}
		return false;
	}
	
	//不都是空值
	public static boolean hasValue(String ...args) {
		return isAllEmpty(args);
	}
}
